<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Topic List</title>
  </head>
  
  <body>
	<div><a href="create.do">create topic</a></div>
    <c:forEach items="${topicList}" var="topic">
    	<div>
    		<div class="title">${topic.title}</div>
    		<div class="content">${topic.content}</div>
    		<c:if test="${user!=null}">
    			<div class="delete"><a href="delete/${topic.id}.do">remove</a></div>
    		</c:if>
    	</div>
    </c:forEach>
  </body>
</html>
